home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 September / CHIP Eylül 1998.iso / Slackwar / contrib / glibc-devel-2.0.5c.README < prev    next >
Text File  |  1997-05-29  |  2KB  |  56 lines

  1.  
  2. This is the GNU glibc-2.0.5c binary package (a.k.a. libc.so.6), including
  3. development libraries and header files.
  4.  
  5. If you want to develop and run applications using GNU libc, just
  6. install this package (and edit your 'specs' file), and programs will
  7. be compiled using glibc by default:
  8.  
  9. installpkg glibc-devel-2.0.5c.tgz
  10.  
  11.  
  12. To change your environment to use GNU libc for compiling you need to
  13. change the `specs' file of your gcc.  This file is normally found at
  14.  
  15.         /usr/lib/gcc-lib/<arch>/<version>/specs
  16.  
  17. In this file you have to change a few things:
  18.  
  19. - change `ld-linux.so.1' to `ld-linux.so.2'
  20.  
  21. - remove all expression `%{...:-lgmon}';  there is no libgmon in glibc
  22.  
  23.  
  24. Note, this version of glibc was not compiled with the DES crypt add-on, 
  25. although it does provide a crypt() function based on MD5.  I'd have liked
  26. to include the real crypt(), but then wouldn't be able to export the
  27. resulting library.  If you really need DES crypt(), you'll have to download
  28. the glibc-crypt-2.0.5.tar.gz add-on and compile it yourself.  It can be 
  29. found on prep.ai.mit.edu, in /pub/gnu.  If you are outside the USA and Canada,
  30. do not download glibc-crypt-2.0.5.tar.gz from prep (to do so violates US 
  31. export restrictions).  There should be a readme file there that will point you
  32. to a non-US FTP site.
  33.  
  34. This library does include the 'linuxthreads' add-on, which provides clone()
  35. and other threads-related functions.
  36.  
  37. If you only want to run glibc applications, and wish to continue using libc5
  38. for applications you compile yourself, install glibc-runtime-2.0.5c.tgz
  39. instead of glibc-devel-2.0.5c.tgz.
  40.  
  41. If you decide to switch back to developing with libc.so.5 again, you'll first
  42. have to edit your 'specs' file to link with ldlinux.so.1.  (In fact, it might
  43. be a good plan to just make a copy of the original 'specs' file when you edit
  44. it in the first place)
  45.  
  46. Then, install the old 'libc.tgz' package again, and then remove glibc
  47. like this:
  48.  
  49. cd <directory containing libc.tgz, such as /cdrom/slakware/d1>
  50. installpkg libc.tgz
  51. cd /var/log/packages
  52. removepkg glibc-devel-2.0.5c
  53.  
  54. Have fun!
  55.  
  56.